package com.atguigu.spring5.bean1.bean;

// 员工
public class Emp {

    private String ename;
    // 性别
    private String gender;

    private Dept dept;

    public void setDept(Dept dept) {
        this.dept = dept;
    }

    public Dept getDept() {
        return dept;
    }

    public void setEname(String ename) {
        this.ename = ename;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public void output(){
        System.out.println(String.format("ename:%s, gender:%s, dept:%s,",ename,gender,dept));
    }
}
